﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/screen.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/ViewScript/_Layout.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/Plugins/loading/js/jquery.showLoading.min.js")"
        type="text/javascript"></script>
    <link href="../../Content/Plugins/loading/css/showLoading.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <div id="page-top-outer">
        <div id="page-top">
            <div id="logo">
                <a href="@Url.Content("~/")">
                    <img src="@Url.Content("~/Content/images/shared/logo_96.png")" /></a>
            </div>
        </div>
    </div>
    <div class="nav-outer-repeat">
        <div class="nav-outer">
            <div id="nav-right">
                <div class="nav-divider">
                    &nbsp;</div>
                <div class="showhide-slidemenu">
                    <a>@ViewBag.LoginUsuario - @ViewBag.SiglaSistema</a></div>
                <div class="slidemenu-content">
                    <div class="slidemenu-drop-inner">
                        <a href="@Url.Content("~/Conta/SelecionarSistema")">Alterar Sistema</a>
                        <div class="acc-line">
                            &nbsp;</div>
                    </div>
                </div>
                <div class="nav-divider">
                    &nbsp;</div>
                <a href="@Url.Content("~/Conta/Logout")" id="logout">
                    <img src="@Url.Content("~/Content/images/shared/nav/nav_logout.gif")" width="64" height="14" alt="" /></a>
                <div class="clear">
                    &nbsp;</div>
                <div>
                </div>
            </div>
            <div id="nav-left">
                <div class="nav-divider">
                    &nbsp;</div>
                @if (ViewBag.AdministrandoCAOS != null && ViewBag.AdministrandoCAOS)
                {
                    <div class="item-menu">
                        <a href="@Url.Content("~/Sistema/Index")">Sistemas</a>
                    </div>
                    <div class="nav-divider">
                        &nbsp;</div>
                }
                <div class="item-menu">
                    <a href="@Url.Content("~/Usuario/Index")">Usuários</a></div>
                <div class="nav-divider">
                    &nbsp;</div>
                @if (ViewBag.AdministrandoCAOS != null && !ViewBag.AdministrandoCAOS)
                {
                    <div class="item-menu showhide-slidemenu">
                        <a>Papéis</a>
                    </div>
                    <div class="slidemenu-content">
                        <div class="slidemenu-drop-inner">
                            <a href="@Url.Content("~/Papel/Index")">Cadastro</a>
                            <div class="clear">
                                &nbsp;</div>
                            <div class="acc-line">
                                &nbsp;</div>
                            <a href="@Url.Content("~/Papel/AssociarUsuarios")">Associar Usuarios</a>
                            <div class="clear">
                                &nbsp;</div>
                            <div class="acc-line">
                                &nbsp;</div>
                            <a href="@Url.Content("~/Papel/AssociarRecursos")">Associar Permissões</a>
                        </div>
                    </div>
                    <div class="nav-divider">
                        &nbsp;</div>
                    <div class="item-menu">
                        <a href="@Url.Content("~/Recurso/Index")">Recursos</a></div>
                    <div class="nav-divider">
                        &nbsp;</div>
                }
                <div class="item-menu">
                    <a href="@Url.Content("~/CAOSServices.asmx")">Serviços</a>
                </div>
                <div class="clear">
                    &nbsp;</div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="clear">
    </div>
    <div id="content-outer">
        <!-- start content -->
        <div id="content">
            <div id="page-heading">
                <h3>
                    @ViewBag.Title
                </h3>
            </div>
            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                <tr>
                    <th rowspan="3" class="sized">
                        <img src="@Url.Content("~/Content/images/shared/side_shadowleft.jpg")" width="20" height="300" alt="" />
                    </th>
                    <th class="topleft">
                    </th>
                    <td id="tbl-border-top">
                        &nbsp;
                    </td>
                    <th class="topright">
                    </th>
                    <th rowspan="3" class="sized">
                        <img src="@Url.Content("~/Content/images/shared/side_shadowright.jpg")" width="20" height="300" alt="" />
                    </th>
                </tr>
                <tr>
                    <td id="tbl-border-left">
                    </td>
                    <td valign="top">
                        <div id="content-table-inner">
                            @RenderBody()
                            <div style="text-align: center; color: Red">
                                <h4>@ViewBag.Mensagem</h4>
                            </div>
                        </div>
                    </td>
                    <td id="tbl-border-right">
                    </td>
                </tr>
                <tr>
                    <th class="sized bottomleft">
                    </th>
                    <td id="tbl-border-bottom">
                        &nbsp;
                    </td>
                    <th class="sized bottomright">
                    </th>
                </tr>
            </table>
            <div class="clear">
                &nbsp;</div>
        </div>
    </div>
    <div class="clear">
        &nbsp;</div>
    <script type="text/javascript">

        $('form').submit(function () {
            if ($('form').valid()) {
                jQuery('#content-outer').showLoading({ 'afterShow': function () { setTimeout("jQuery('#content-outer').hideLoading()", 5000) } })
            }
        });

    </script>
</body>
</html>
